home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 36
/
Amiga Format CD36 (1999-01-22)(Future Publishing)(GB)[!][issue 1999-02].iso
/
-seriously_amiga-
/
-commercial-
/
golded5_demo
/
installdata
/
autorun
/
golded.rexx
Wrap
OS/2 REXX Batch file
|
1998-11-30
|
3KB
|
118 lines
/* $VER: 1.0, ©1998 Dietmar Eilert */
options results /* enable return codes */
if (left(address(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
address 'GOLDED.1'
'LOCK CURRENT RELEASE=0' /* lock GUI, gain access */
if (RC ~= 0) then
exit
options failat 6 /* ignore warnings */
signal on syntax /* ensure clean exit */
/* ---------------------- INSERT YOUR CODE HERE ---------------------- */
'QUERY CAT'
if (RESULT = "deutsch") then do
STRING.sCOMPLETING = "Vervollständigung der Installation"
STRING.sGRAPHICS = "Welche Grafikhardware ist auf diesem*nRechner installiert ?"
STRING.sOPTIONS = "!Amiga-Grafik|Grafikkarte|UAE"
STRING.sCACHE = "Cache für Grafiken aktivieren ?*n*nDer Cache beschleunigt den Start,*nbenötigt aber 50-200 KB Speicher."
STRING.sCACHESKIP = "!AKTIVIEREN|Kein Cache"
end
else do
STRING.sCOMPLETING = "Completing installation"
STRING.sGRAPHICS = "What graphics hardware is installed*non this computer ?"
STRING.sOPTIONS = "!Amiga Graphics|Graphics Card|UAE"
STRING.sCACHE = "Enable cache for images ?*n*nThe cache reduces the startup time*nbut requires 50-200 K RAM."
STRING.sCACHESKIP = "!ENABLE|No cache"
end
'REQUEST STATUS="' || STRING.sCOMPLETING || '"'
/* get user name and serial number */
RESULT = open('env', "golded:etc/env/name", 'READ')
if (RESULT ~= 0) then do
USER = readln('env')
'FIX VAR=USER'
'SET USER VALUE="' || USER || '"'
RESULT = close('env')
end
RESULT = open('env', "golded:etc/env/serial", 'READ')
if (RESULT ~= 0) then do
SERIAL = readln('env')
'SET SERIAL VALUE="' || SERIAL || '"'
RESULT = close('env')
end
/* query graphics hardware */
'REQUEST TITLE="' || STRING.sCOMPLETING || '" BODY="' || STRING.sGRAPHICS || '" BUTTON="' || STRING.sOPTIONS || '"'
if (RC = 0) then do
/* request simple refresh if running with Amiga hardware */
if (RESULT = 1) then
'REGEDIT KEY=59 DEEP NUMBER=0'
else
'REGEDIT KEY=59 DEEP NUMBER=1'
end
/* enable/build cache */
'REQUEST TITLE="' || STRING.sCOMPLETING || '" BODY="' || STRING.sCACHE || '" BUTTON="' || STRING.sCACHESKIP || '"'
if (RC = 0) then do
if (RESULT = 1) then do
'REGEDIT KEY=89 DEEP NUMBER=1'
'IMAGES VALIDATE'
end
else do
'IMAGES RESET'
'REGEDIT KEY=89 DEEP NUMBER=0'
end
end
'REQUEST STATUS=""'
'prefs global save'
/* ------------------------- END OF YOUR CODE ------------------------ */
'UNLOCK' /* unlock GUI */
exit
SYNTAX:
SAY "Error in line" SIGL ":" ERRORTEXT(RC)
'UNLOCK'